.class Lcom/waiqin365/base/calendar/a;
.super Landroid/support/v4/widget/ViewDragHelper$Callback;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/calendar/ScrollLayout;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/calendar/ScrollLayout;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-direct {p0}, Landroid/support/v4/widget/ViewDragHelper$Callback;-><init>()V

    return-void
.end method


# virtual methods
.method public clampViewPositionVertical(Landroid/view/View;II)I
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->b(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v0

    if-lt p2, v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->c(Lcom/waiqin365/base/calendar/ScrollLayout;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->b(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getTop()I

    move-result v1

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->e(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/WeekView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/WeekView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    const/16 v0, 0x1e

    if-le p2, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    neg-int v0, v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    mul-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    div-int/2addr v0, v1

    :cond_0
    :goto_0
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "========clampViewPositionVertical"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->h(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/b;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/waiqin365/base/calendar/b;->a(I)V

    return v0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->b(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v0

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->g(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getMeasuredHeight()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    mul-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    div-int/2addr v1, v2

    if-gt v0, v1, :cond_4

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->c(Lcom/waiqin365/base/calendar/ScrollLayout;)Z

    move-result v0

    if-nez v0, :cond_3

    if-ltz p2, :cond_3

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    neg-int v0, v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    mul-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    div-int/2addr v0, v1

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v1

    neg-int v1, v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    mul-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    div-int/2addr v1, v2

    if-ne v0, v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->a(Lcom/waiqin365/base/calendar/ScrollLayout;Z)Z

    goto/16 :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    neg-int v0, v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    mul-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    div-int/2addr v0, v1

    invoke-static {p2, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->g(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getMeasuredHeight()I

    move-result v0

    neg-int v0, v0

    invoke-static {p2, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    goto/16 :goto_0
.end method

.method public getViewVerticalDragRange(Landroid/view/View;)I
    .locals 3

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "========getViewVerticalDragRange"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    return v0
.end method

.method public onViewPositionChanged(Landroid/view/View;IIII)V
    .locals 7

    const/4 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0, p3}, Lcom/waiqin365/base/calendar/ScrollLayout;->a(Lcom/waiqin365/base/calendar/ScrollLayout;I)I

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    neg-int v0, v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->i(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    mul-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    div-int/2addr v0, v1

    if-gt p3, v0, :cond_1

    if-gez p5, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->e(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/WeekView;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/base/calendar/views/WeekView;->setVisibility(I)V

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    add-int/2addr v0, p3

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->e(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/WeekView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/WeekView;->getHeight()I

    move-result v1

    if-gt v0, v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getX()F

    move-result v1

    float-to-int v1, v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->e(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/WeekView;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/base/calendar/views/WeekView;->getHeight()I

    move-result v2

    sub-int/2addr v2, p3

    iget-object v3, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v3}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getX()F

    move-result v3

    float-to-int v3, v3

    iget-object v4, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v4}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4}, Landroid/view/View;->getWidth()I

    move-result v4

    add-int/2addr v3, v4

    iget-object v4, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v4}, Lcom/waiqin365/base/calendar/ScrollLayout;->e(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/WeekView;

    move-result-object v4

    invoke-virtual {v4}, Lcom/waiqin365/base/calendar/views/WeekView;->getHeight()I

    move-result v4

    sub-int/2addr v4, p3

    iget-object v5, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v5}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/View;->getHeight()I

    move-result v5

    add-int/2addr v4, v5

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/view/View;->layout(IIII)V

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "========onViewPositionChanged"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v0

    neg-int v0, v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->i(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    mul-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    div-int/2addr v0, v1

    if-lt p3, v0, :cond_0

    if-lez p5, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->e(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/WeekView;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/calendar/views/WeekView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->j(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1
.end method

.method public onViewReleased(Landroid/view/View;FF)V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v1

    neg-int v1, v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    mul-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    div-int/2addr v1, v2

    if-le v0, v1, :cond_1

    cmpl-float v0, p3, v4

    if-ltz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->k(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/support/v4/widget/ViewDragHelper;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->b(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v1

    invoke-virtual {v0, v3, v1}, Landroid/support/v4/widget/ViewDragHelper;->settleCapturedViewAt(II)Z

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->a(Lcom/waiqin365/base/calendar/ScrollLayout;Z)Z

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->h(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/b;

    move-result-object v0

    invoke-interface {v0, v3}, Lcom/waiqin365/base/calendar/b;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->invalidate()V

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string/jumbo v1, "========onViewReleased"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v1

    neg-int v1, v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    mul-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    div-int/2addr v1, v2

    if-le v0, v1, :cond_0

    cmpg-float v0, p3, v4

    if-gez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->k(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/support/v4/widget/ViewDragHelper;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v1

    neg-int v1, v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    mul-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    div-int/2addr v1, v2

    invoke-virtual {v0, v3, v1}, Landroid/support/v4/widget/ViewDragHelper;->settleCapturedViewAt(II)Z

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0, v3}, Lcom/waiqin365/base/calendar/ScrollLayout;->a(Lcom/waiqin365/base/calendar/ScrollLayout;Z)Z

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->h(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/b;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v1}, Lcom/waiqin365/base/calendar/ScrollLayout;->d(Lcom/waiqin365/base/calendar/ScrollLayout;)Lcom/waiqin365/base/calendar/views/MonthView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/calendar/views/MonthView;->getHeight()I

    move-result v1

    neg-int v1, v1

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    mul-int/2addr v1, v2

    iget-object v2, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v2}, Lcom/waiqin365/base/calendar/ScrollLayout;->f(Lcom/waiqin365/base/calendar/ScrollLayout;)I

    move-result v2

    div-int/2addr v1, v2

    invoke-interface {v0, v1}, Lcom/waiqin365/base/calendar/b;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-virtual {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->invalidate()V

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string/jumbo v1, "========onViewReleasedonViewReleased"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public tryCaptureView(Landroid/view/View;I)Z
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/calendar/a;->a:Lcom/waiqin365/base/calendar/ScrollLayout;

    invoke-static {v0}, Lcom/waiqin365/base/calendar/ScrollLayout;->a(Lcom/waiqin365/base/calendar/ScrollLayout;)Landroid/widget/LinearLayout;

    move-result-object v0

    if-ne p1, v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
